package com.livesource.client.web.liveSource;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * 
 * @UserInterface
 */
public class HowToUse extends VerticalPanel {

	public HowToUse(VerticalPanel login, HTML sampleProject) {

		this.setBorderWidth(1);

		VerticalPanel vpBlog = new VerticalPanel();

		vpBlog.setWidth("250px");

		vpBlog.setSpacing(30);

		vpBlog.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		vpBlog.add(howToUseEnglish(login, sampleProject));

		vpBlog.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);

		this.add(vpBlog);
	}

	private VerticalPanel howToUseEnglish(VerticalPanel login,
			HTML sampleProject) {

		VerticalPanel hp = new VerticalPanel();

		hp.add(login);

		hp.add(sampleProject);

		HTML contactUs = new HTML(
				"<br><center><a href='mailto:alline.oliveira@golivesource.com'>Contact us!</a></center>");

		hp.add(contactUs);

		return hp;
	}
}
